/*
 * @Author: libing 9852442+liu-sheng-8667@user.noreply.gitee.com
 * @Date: 2024-05-22 21:29:31
 * @LastEditors: xuezhuangzhuang xzz6996@qq.com
 * @LastEditTime: 2024-07-08 20:25:47
 * @FilePath: \crm\config\storage.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
// 获取用户信息
export function getUserInfo() {
  return uni.getStorageSync("mUserinfo");
}
// 保存用户信息
export function setUserInfo(data) {
  uni.setStorageSync("mUserinfo", data);
}

// 获取token
export function getToken() {
  return uni.getStorageSync('mToken') || ''
}
// 保存token
export function setToken(data) {
  uni.setStorageSync('mToken', data)
}

// 获取 refresh_toekn
export function getRefreshToken() {
  return  uni.getStorageSync('refreshToken') || ''
}

// 保存 refresh_toekn
export function setRefreshToken(data) {
  return  uni.setStorageSync('refreshToken',data)
}

// 获取客户类型
export function getCustomerType() {
  return  uni.getStorageSync('customerType') || ''
}

// 保存客户类型
export function setCustomerType(data) {
  return  uni.setStorageSync('customerType',data)
}

// 获取客户等级
export function getCustomerLevel() {
  return  uni.getStorageSync('customerLevel') || ''
}

// 保存客户等级
export function setCustomerLevel(data) {
  return  uni.setStorageSync('customerLevel',data)
}


export function getOssExpiration() {
  return  uni.getStorageSync('getOssExpiration') || ''
}

export function setOssExpiration() {
  return  uni.setStorageSync('getOssExpiration') || ''
}


export function getOssSignature(data) {
  return  uni.getStorageSync('getOssSignature',data)
}

export function setOssSignature(data) {
  return  uni.setStorageSync('getOssSignature',data)
}





